//判断按钮权限
export default function hasPermission(parm) {
  let flag = false;
  let permList = JSON.parse(sessionStorage.getItem('permList'))
  for (let i = 0; i < permList.length; i++) {
      if (permList[i] === parm) {
        flag = true;
          break;
      }
  }
  return flag;
}
